home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / BEGINCPP.ARJ / #7_VER2.C < prev    next >
Text File  |  1990-08-03  |  2KB  |  70 lines

  1. #line 1 "#7_ver2.cxx"
  2. void *_new(long);
  3. void _delete(void*);
  4. void *_vec_new(void*,int,int,void*(*)(void*));
  5. void _vec_delete(void*,int,int,void(*)(void*,int),...);
  6. void exit(int);
  7. static void cdecl _STI();
  8. static void cdecl _STD();
  9.  
  10. void *malloc (unsigned int );
  11. int free (void *);
  12.  
  13. struct tag_name { 
  14.     int _tag_name_i ;
  15.     float _tag_name_f ;
  16. } ;
  17.  
  18. struct class_one { 
  19.     struct tag_name _class_one_t ;
  20. } ;
  21.  
  22. struct class_two { char _dummy; } ;
  23.  
  24. struct class_two *_class_two__ctor (struct class_two* , unsigned int );
  25. void _class_two__dtor (struct class_two* , int );
  26.  
  27. struct class_two *_class_two__ctor (register struct class_two *this , 
  28.                              unsigned int _au0_size )
  29.     this = (((struct class_two *)malloc ( _au0_size ) ));
  30.     return this ;
  31.  
  32. void _class_two__dtor (register struct class_two *this , int _au0__free )
  33.     if (this ) { 
  34.         free ( (void *)this ) ;
  35.         this = 0 ;
  36.         if (this )
  37.             if (_au0__free )
  38.                 ( _delete ( (void *)this ) , 0 ) ;
  39.     } 
  40.  
  41. int main ()
  42.   { 
  43.     struct class_one _au1_c1 ;
  44.     struct class_one _au1_cc1 ;
  45.     
  46.     struct class_two _au1_c2 ;
  47.     
  48.     ( ( ( ((& _au1_c1 )-> _class_one_t . _tag_name_i = 1 ), 
  49.         ((& _au1_c1 )-> _class_one_t . _tag_name_f = ((float )1.1 ))) , 
  50.         (((& _au1_c1 )))) ) ;
  51.  
  52.     ( ( ( ((& _au1_cc1 )-> _class_one_t . _tag_name_i = ((int )0 )), 
  53.         ((& _au1_cc1 )-> _class_one_t . _tag_name_f = ((float )0 ))) , 
  54.         (((& _au1_cc1 )))) ) ;
  55.  
  56.     _class_two__ctor ( & _au1_c2 , (unsigned int )(sizeof (struct class_two ))) ;
  57.  
  58.     _au1_cc1 = (*( (& _au1_c1 )) );
  59.  
  60.     _class_two__dtor ( & _au1_c2 , (int )0 ) ;
  61.   }  
  62.   exit ( 0 ); 
  63. }
  64.  
  65.